/* 入驻歌手(在接口里面有一个"accountId"属性) */
$(function () {
    // let limit = 5
    let singer_list = $('#singer_list');
    let rzSinger = []
    $.ajax({
        url: "http://localhost:3000/artist/list",
        data: {
            // limit: limit,
            // offset: (0 * limit)
        },
        success: function (res) {
            res.artists.forEach(el => {
                if (!el.accountId) return;
                if (rzSinger.length >= 5) return
                rzSinger.push(el);
                singer_list.html('');
                rzSinger.forEach(e => {
                    singer_list.append(`<li>
                    <a href="javascript:;" class="singerItem">
                        <div class="img_singer">
                            <img src="${e.img1v1Url}" alt="">
                        </div>
                        <div class="ifo_singer">
                            <h4 class="f-thide">${e.name}</h4>
                            <p class="f-thide">...</p>
                        </div>
                    </a>
                </li>`)
                })
            });
            console.log(rzSinger);
        }
    })
})